import document from '@ohos.document';
import router from '@system.router';
export default {
    data: {
        title: "新建患儿信息",
        content:[
            {
                name:"姓名:",
                sex:"性别:",
                age:"年龄:",
                familyname:"家长姓名:",
                familyphone:"家长联系方式:",
            }
        ],
        colortext1:'#000000',
        colorbgc1:'#ffffff',
        colortext2:'#000000',
        colorbgc2:'#ffffff',

    },
    btnclick(){
//        实现点击‘男’的按钮，阴影给到‘男’，且‘女’的按钮背景色为白色，反之也成立，
//        且被选中的按钮value传给js从而传给后端数据库
        this.colortext1='#ffffff';
        this.colorbgc1='#7468BE';
        this.colortext2='#000000';
        this.colorbgc2='#ffffff';

    },

    btnclick2(){
        this.colortext2='#ffffff';
        this.colorbgc2='#7468BE';
        this.colortext1='#000000';
        this.colorbgc1='#ffffff';
    },

    imgclick(){
        router.push({
            uri:'pages/speech_recognition/speech_recognition',//指定要跳转的页面
        })
    },
}